<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>


<script src="lib/require.js"></script>
<script>
  require(['./js/moduleA','./js/moduleB'],()=>{
    let res = `./js/moduleB`
    console.log(res)
  })
</script>
</body>
</html>